/**  
 * @Title: LogoutController.java
 * @Package: com.itic.appbase.applications.login.controller
 * @author: idong
 * @date: May 26, 2015 10:34:48 AM
 * @version: V1.0  
 */

package com.itic.appbase.applications.login.controller;

import com.itic.appbase.framework.common.controller.BaseController;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>Company: itic</p>
 * 系統退出Controller
 * 
 * @author: idong
 * @date: May 26, 2015 10:34:48 AM
 * @version: V1.0
 */
@Controller
@RequestMapping("/")
public class LogoutController
        extends BaseController {
    @RequestMapping(value = "logout")
    public String logOut(HttpServletRequest request) {
        // 清空session
        this.cleanUserSession(request);
        // 重定向
        return "redirect:login";
    }
}
